/* 
 * Copyright 2012 Mikaël GUILLEMOT
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.g2de.effects;


/**
 *
 * @author	Mikael GUILLEMOT
 * @version 	1.0
 * @since 
 *
 */
public class WaterPlan {

	//3D = x+y+temp
	private static float[] ran = {0.5f,1.2f,3f};
	
	public static double interpolation_lineaire(double a, double b, double x) {
		   return a * (1 - x) + b * x;
	}

	public static double interpolation_lineaire2D(double a, double b, double c, double d, double x, double y) {
		   double i1 = interpolation_lineaire(a, b, x);
		   double i2 = interpolation_lineaire(c, d, x);
		   return interpolation_lineaire(i1, i2, y);
		}
	
	//http://www.java-gaming.org/index.php?topic=23771.0
	//http://devmag.org.za/2009/04/25/perlin-noise/
	//http://www.siteduzero.com/tutoriel-3-68655-bruits-et-nombres-aleatoires-coherents.html
	//http://en.wikipedia.org/wiki/Worley_noise (water !)
//http://en.wikipedia.org/wiki/Value_noise

}

//http://www.neilwallis.com/projects/java/water/index.php
